{% extends "base_dialog.html" %}

{% block title %}{% endblock %}

{% block content %}
    <h2 style="margin-top: 0px;margin-bottom: 4px;">{% if error %}
        Не удалось добавить {% include "types" %}
        {% else %}
        Успешно добавили {% include "types" %}
    {% endif %}
    </h2>
    {% if error %}
        <h4>{{ error }}</h4>{% endif %}
    {% if question %}
        <div class="tip">Задача:</div>
        <div class="quest">{{ question.text|linebreaksbr }}</div>
        <div class="indent1">
        <p class="subhead">Вы добавили {% include "types" %}:</p>
    {% endif %}
<div class="state">{{ text }}</div>
{% if tags %}
    <div class="tip"><br>Тэги:
    {% for tag in tags %}<span class="tag">{{ tag }}</span> {% endfor %}
{% endif %}
{% if question %}</div>{% endif %}
<h2>
    {% if error %}<a href="javascript:javascript:history.go(-1)"
                     data-icon="arrow-l"
                     data-role="button"
                     data-inline="true">Назад</a>
        {% else %}<a href="{{ next }}&rnd={{ rnd }}"
                     data-role="button"
                     data-theme="b"
                     data-icon="check"
                     data-inline="true">Дальше</a>{% endif %}
</h2>
{% endblock %}